<html>

    <body>
        <div>
            <h3>Box one</h3>
            <input id="boxOne" type="text" value="foo"
                onkeyup="if (this.value == '') this.value = 'rubbish'"/>
        </div>
    </body>
</html>